import { http } from "@/uni-sub-base/service/request.js"

let serviceName = "BuyOrder/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取入库列表
export function GetBuyOrderInList(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetBuyOrderInList" + path,
        data,
    })
}

//查询待入库信息
export function GetBuyOrdStockOutByOutNo(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetBuyOrdStockOutByOutNo" + path,
        data,
    })
}

//商品入库
export function BuyOrderStockOutToIn(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "BuyOrderStockOutToIn" + path,
        data,
    })
}

//待入库单详情
export function GetBuyOrdStockOutInfo(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "GetBuyOrdStockOutInfo" + path,
        data,
    })
}

//入库单详情
export function BuyOrderStockInInfo(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlGuide + serviceName + "BuyOrderStockInInfo" + path,
        data,
    })
}
